package com.spzx.channel.controller;

import com.spzx.channel.service.BrandService;
import com.spzx.common.core.web.controller.BaseController;
import com.spzx.common.core.web.domain.AjaxResult;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName BrandController
 * @Author 波
 * @Date 2024/8/5 18:27
 */
@RestController
@RequestMapping("/brand")
@Tag(name = "查询所有品牌信息")
public class BrandController extends BaseController {

    @Autowired
    private BrandService brandService;

    @Operation(summary = "获取所有品牌")
    @GetMapping("/getBrandAll")
    public AjaxResult getBrandAll() {
        return success(brandService.getBrandAll());
    }

}
